<?php
define('mcz_WS_MODE', true);
include('index.php');

if(isset($_GET['wsdl']))
{
	require_once(mcz_WS_DIR . 'mcz/Service.php');
	$autodiscover = new Zend_Soap_AutoDiscover();
	$autodiscover->setClass('mcz_Service');
	$autodiscover->handle();
}
else
{
	require_once(mcz_WS_DIR . 'mcz/Service.php');
	$server = new Zend_Soap_Server(mcz_BASE_URL . 'soap.php?wsdl=1');
	$server->setClass('mcz_Service');
	$server->handle();
}